<T:ViewBase x:Class="WPFExcelReport.TBB14"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"   
                    xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
                    xmlns:me="clr-namespace:WPFExcelReport"  
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:BM="clr-namespace:WPFExcelReport;assembly=TBABST" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"    
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"  
                    Name="TV"
                    Background="White"    
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel >
            <WrapPanel Height="34">
                <Label Content="{Binding Source={Localization:Translate Word=轴号：}}"    Width="Auto" Margin="10,0,0,0"     FontSize="18"  Foreground="#FF141111" />
                <ex:TXT72 MaxLength="6" PRE="000000" Text="" Name="txtZH" Width="114" Margin="5,0,0,0"  HorizontalAlignment="Left" Background="Pink"  
                         KeyUp="txtZH_KeyUp" CharacterCasing="Upper"   Foreground="#FF141111" />
                <Label Content="{Binding Source={Localization:Translate Word=日期从}}"   HorizontalAlignment="Left" Margin="10,0,0,0"  Width="Auto" FontSize="16" />
                <DatePicker Height="24"   HorizontalAlignment="Left" Margin="0,2,0,0"    Panel.ZIndex="4"
                            Text="" SelectedDateChanged ="FROM_DATE_SelectedDateChanged"  Width="126" />
                <Label Content="{Binding Source={Localization:Translate Word=到}}" Height="28"  HorizontalAlignment="Left" Margin="10,0,0,0"   Width="Auto" FontSize="16" />
                <DatePicker Height="25"   HorizontalAlignment="Left" Margin="0,0,0,0"   VerticalAlignment="Center" Panel.ZIndex="5"
                                  Text=""    SelectedDateChanged ="END_DATE_SelectedDateChanged" Width="122" />
                <Button Content="{Binding Source={Localization:Translate Word=查询}}" Height="33" Margin="10,0,0,0"   Width="96" Panel.ZIndex="9"
                        Click="QueryCommand"/>
                <Button    Content="{Binding Source={Localization:Translate Word=导出}}" Height="33" Margin="10,0,0,0"   Width="100" Panel.ZIndex="10"
                    Click="PrintCommand"   />
                <Label Content="{Binding Source={Localization:Translate Word=库位：}}"    Width="Auto" Margin="10,0,0,0"     FontSize="18"  Foreground="#FF141111" />
                <ex:TXT72 Text="{Binding TLP,ElementName=TV}"  Width="50" Margin="5,0,0,0"  HorizontalAlignment="Left" Background="Pink"  
                          CharacterCasing="Upper" MaxLength="8"   Foreground="#FF141111" />
                <Button   Content ="保存" Click="SaveCommand" Height="36" Margin="5,0,0,0" Width="65" />
            </WrapPanel>
            <BM:TBABST Name="cBB" AUMLFD="{Binding AUMLFD,ElementName=TV}" TLP="{Binding TLP,ElementName=TV}" />
        </StackPanel>
        <DataGrid  Grid.Row="1" Grid.Column="0"
                   Grid.RowSpan="2"
                   VerticalAlignment="Top"  
                   AutoGenerateColumns="False"
                   EnableRowVirtualization="False"
                   VerticalScrollBarVisibility="Auto"
                   HorizontalScrollBarVisibility="Auto"
                   HeadersVisibility="Column"
                   Name="dlgMaster"
                   ItemsSource="{Binding Source={StaticResource vwMaster}}" 
                   IsSynchronizedWithCurrentItem="True" 
                    >
            <DataGrid.Columns>
                <!--GABBUCHDAT	GABART	GABFARBE	GPSPPART	GPFBPART	PRODNM	PRODQTY	INNM	INQTY	MOISTURE	PRODKG	INKG-->
                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=穿综日期}}" Binding="{Binding BBBUCHDAT}" Width="Auto"/>
                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=库}}" Binding="{Binding BMLO}" Width="Auto"/>
                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=库区}}" Binding="{Binding BMLB}" Width="Auto"/>
                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=库位}}" Binding="{Binding BMLP}" Width="Auto"/>
                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=任务书号}}" Binding="{Binding BMKART}" Width="Auto"/>
                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=色号}}" Binding="{Binding BMFARBE}" Width="Auto"/>
                <DataGridTextColumn Binding="{Binding MTR}"  Header="{Binding Source={Localization:Translate Word=米数}}" Width="Auto" />
                <DataGridTextColumn Binding="{Binding BBBAUMKRS}"  Header="{Binding Source={Localization:Translate Word=轴前缀}}" Width="Auto" />
                <DataGridTextColumn Binding="{Binding BBBAUMLFD}"  Header="{Binding Source={Localization:Translate Word=轴号}}" Width="Auto" />
                <!--><DataGridTextColumn Header="{Binding Source={Localization:Translate Word=汇报公重}}" Binding="{Binding PRODQTY}" Width="Auto"/>
                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=汇报单重}}" Binding="{Binding APRODQTY}" Width="Auto"/>
                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=入库单重}}" Binding="{Binding RINQTY}" Width="Auto"/>
                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=入库箱数}}" Binding="{Binding INNM}" Width="Auto"/>
                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=入库公重}}" Binding="{Binding INQTY}" Width="Auto"/>
                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=标准回潮}}" Binding="{Binding SMOISTURE}" Width="Auto"/>
                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=实际回潮}}" Binding="{Binding RMOISTURE}" Width="Auto"/>
                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=平均回潮}}" Binding="{Binding MOISTURE}" Width="Auto"/>
                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=汇报实重}}" Binding="{Binding PRODKG}" Width="Auto"/>
                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=入库实重}}" Binding="{Binding INKG}" Width="Auto"/>
                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=差异}}" Binding="{Binding DIFF}" Width="Auto"/>-->
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>

</T:ViewBase>
